def getPentagonalNumber(n):
    return round(n * (3*n - 1) / 2)

LINES_CHAR_NUM = 10
for i in range(1,101):
    print(format(getPentagonalNumber(i),"<10d"),end=" ")
    if i % LINES_CHAR_NUM == 0:
        print()
